import request from "utils/request";

const houseTypeApi = {};

//分页版
houseTypeApi.pageList = function (listQuery) {
   return request({
      url: "/housesType/list.do",
      method: "get",
      params: listQuery
   });
};

houseTypeApi.add = function (data) {
   return request.postData("/housesType/add.do", data);
};

houseTypeApi.update = function (data) {
   return request.postData("/housesType/update.do", data);
};

houseTypeApi.delete = function (keyId) {
   return request.postData("/housesType/delete.do", {keyId});
};

export default houseTypeApi;
